using net_work.Data.Enum.Appr;
using net_work.Data.Enum.System;

namespace net_work.Data.Entity.Appr;

/// <summary>
/// 流程实体类
/// </summary>
public class Flow : BaseEntity
{
    /// <summary>
    /// 流程名称
    /// </summary>
    public required string Name { get; set; }

    /// <summary>
    /// 流程描述
    /// </summary>
    public string? Description { get; set; }

    /// <summary>
    /// 流程对应业务的硬编码
    /// </summary>
    public required BusinessType BusinessCode { get; set; }

    /// <summary>
    /// 流程状态
    /// </summary>
    public required FlowStatus Status { get; set; }

    /// <summary>
    /// 流程开始节点的ID
    /// </summary>
    public long? BeginFlowNodeId { get; set; }
}